from django.db import models, transaction, connection, ProgrammingError

class CoreModel(models.Model):
    """
    """
    id = models.BigAutoField(primary_key=True, help_text="Id", verbose_name="Id")
    create_by = models.CharField(max_length=32, null=True, blank=True, help_text="创建人")
    create_time = models.DateTimeField(auto_now=True, null=True, blank=True)
    update_time = models.DateTimeField(auto_now=True, null=True, blank=True)
    update_by = models.CharField(max_length=32, null=True, blank=True)

    class Meta:
        abstract = True
        verbose_name = 'core model'
        verbose_name_plural = verbose_name
